package com.aat.dizena.chat.service.impl;

import java.util.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aat.dizena.chat.bean.FriendMsg;
import com.aat.dizena.chat.dao.FriendMsgDao;
import com.aat.dizena.chat.service.FriendMsgService;

@Service
public class FriendMsgServiceImpl  implements FriendMsgService {

    @Autowired
    private FriendMsgDao friendmsgDao;

    public int addBean(FriendMsg bean){
        return friendmsgDao.addBean(bean);
    }

    public int updateBean(FriendMsg bean){
        return friendmsgDao.updateBean(bean);
    }

    public int deleteBean(String id){
        return friendmsgDao.deleteBean(id);
    }

    public FriendMsg queryBean(String id){
        return friendmsgDao.queryBean(id);
    }

    public List<FriendMsg> queryAll(Map<String, Object> map){
        return friendmsgDao.queryAll(map);
    }

    public long queryCount(Map<String, Object> map){
        return friendmsgDao.queryCount(map);
    }

}
